<h1>Fingers for <%= link_to @task.name, task_path(@task) %></h1>
<hr>
<div class="col-lg-8 table-responsive">
	<table class="table">
		<tr>
			<th>uuid</th>
			<th>samples</th>
			<th>valid</th>
			<th>selected</th>
			<th>mark</th>
			<th>suspect</th>
		</tr>
		<% @fingers.each do |finger| %>
			<tr class="bg-<%= marker_to_class(finger.marker) %>">
				<td><%= link_to finger.id, fingers_show_path(id: finger.id) %></td>
				<td><%= finger.samples.size %></td>
				<td><%= finger.valid_samples.size %></td>
				<td><%= finger.valid_finger? %></td>
				<td>
				<div class="btn-group">
					<%= link_to 'pending', mark_path(id: finger.id, marker: 'pending'), class: 'btn btn-info btn-xs' %>
				</div>
				</td>
				<td>
					<% if finger.marker == 'suspect' %>
						<%  sid = finger.suspect_finger_id %>
						<%= link_to sid, fingers_show_path(id: sid) %>
					<% end %>
				</td>
			</tr>
		<% end %>
	</table>
	<%= paginate @fingers %>	
</div>
